package com.company.controller;

import com.company.dao.Fooddao;
import com.company.dao.impl.Fooddaoimpl;
import com.company.entity.Food;

import java.sql.SQLException;
import java.util.List;

public class Foodcontroller {
    public static void main(String[] args) throws SQLException {
        Fooddao fooddao =new Fooddaoimpl();
         List<Food> lis = fooddao.Findall();
        for(Food food:lis){
            System.out.println(food);
        }


    }
}
